package cn.oms.stock.provider.dao.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author AllenChen曾晨
 * @since 2022-04-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("drug_picking_record")
@ApiModel(value="DrugPickingRecord对象", description="")
public class DrugPickingRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "捡药ID(新增生成)UUID")
    @TableField("ID")
    private String id;

    @ApiModelProperty(value = "捡药CODE（新增生成）（PR）")
    @TableField("PICKING_CODE")
    private String pickingCode;

    @ApiModelProperty(value = "分期号（新增生成）(RO)")
    @TableField("REFILL_CODE")
    private String refillCode;

    @ApiModelProperty(value = "医嘱组号CODE（对应医嘱组号）（同一个病例所有的医嘱对应同一个医嘱主）")
    @TableField("ORDER_GROUP_CODE")
    private String orderGroupCode;

    @ApiModelProperty(value = "医嘱号CODE（对应医嘱表）")
    @TableField("ORDER_CODE")
    private String orderCode;

    @ApiModelProperty(value = "处方号CODE（对应处方表）")
    @TableField("PRESCRIPTION_CODE")
    private String prescriptionCode;

    @ApiModelProperty(value = "处方版本号（对应处方表）")
    @TableField("PRESCRIPTION_SQL")
    private Integer prescriptionSql;

    @ApiModelProperty(value = "患者ID（对应患者信息表）")
    @TableField("PATIENT_ID")
    private String patientId;

    @ApiModelProperty(value = "产品CODE（对应药品知识库的药品代码）")
    @TableField("ITEM_CODE")
    private String itemCode;

    @ApiModelProperty(value = "产品详情（对应药品详情信息、名称、大小）")
    @TableField("ITEM_DESCRIPTION")
    private String itemDescription;

    @ApiModelProperty(value = "入库批次号CODE（对应进货表批次号）（PP201202007）")
    @TableField("PURCHASE_BATCH_NO")
    private String purchaseBatchNo;

    @ApiModelProperty(value = "产品生产厂家CODE（对应厂家表）")
    @TableField("MANUFACTURER_CODE")
    private String manufacturerCode;

    @ApiModelProperty(value = "产品生产厂家信息名称（对应厂家表）")
    @TableField("MANUFACTURER_NAME")
    private String manufacturerName;

    @ApiModelProperty(value = "入库产品厂家批准代码（国药准字号）")
    @TableField("MANUFACTURER_APPROVAL_CODE")
    private String manufacturerApprovalCode;

    @ApiModelProperty(value = "货架位置（ Z1-AS2-03 (S)、Z1-A101-01 (W)）")
    @TableField("SHELF_LOCATION")
    private String shelfLocation;

    @ApiModelProperty(value = "分期量")
    @TableField("REFILL_QTY")
    private BigDecimal refillQty;

    @ApiModelProperty(value = "捡药量")
    @TableField("PICKING_QTY")
    private BigDecimal pickingQty;

    @ApiModelProperty(value = "基本单位CODE")
    @TableField("BASE_UNIT_CODE")
    private String baseUnitCode;

    @ApiModelProperty(value = "基本单位(简称)（中文）")
    @TableField("BASE_UNIT_NAME_CN")
    private String baseUnitNameCn;

    @ApiModelProperty(value = "基本单位(简称)（英文）")
    @TableField("BASE_UNIT_NAME_EN")
    private String baseUnitNameEn;

    @ApiModelProperty(value = "捡药操作人ID")
    @TableField("PICKING_MAN_ID")
    private String pickingManId;

    @ApiModelProperty(value = "捡药操作人姓名")
    @TableField("PICKING_MAN_NAME")
    private String pickingManName;

    @ApiModelProperty(value = "捡药操作时间")
    @TableField("PICKING_OPERATING_TIME")
    private LocalDate pickingOperatingTime;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDate createTime;

    @ApiModelProperty(value = "删除标记")
    @TableField("DEL_FLAG")
    private Integer delFlag;


}
